package org.itboys.core.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * @Author：贾琦磊
 * @Date：2018/8/1
 * @Description：仓库实体类
 */
@Entity(value = "SundayStore",noClassnameStored = true)
public class SundayStore extends BaseMongoEntity{
    /**
     * 编号，自动生成，加前缀STORE
     */
    private String number;
    /**
     * 仓库名称
     */
    private String name;
    /**
     * 仓库图片
     * 保留字段，可能不需要
     */
    private String image;
    /**
     * 组织类型
     */
    private Integer orgType;
    /**
     * 联系人id
     */
    private String user;
    /**
     * 联系电话
     */
    private String mobile;
    /**
     * 仓库类型，前置仓--1      中心仓--2
     */
    private Integer type;
    /**
     * 仓库所属省id
     */
    private Long provinceId;
    /**
     *仓库所属省名称
     */
    private String provinceName;
    /**
     * 仓库所属市id
     */
    private Long cityId;
    /**
     * 仓库所属市名称
     */
    private String cityName;
    /**
     * 仓库所属区id
     */
    private Long districtId;
    /**
     * 仓库所属区名称
     */
    private String districtName;
    /**
     * 仓库所属详细地址
     */
    private String address;
    /**
     * 仓库经纬度-经度
     */
    private Double longitude;
    /**
     * 仓库经纬度-纬度
     */
    private Double latitude;

    public SundayStore() {
    }

    public SundayStore(String name,Integer orgType,String image,
                       String user,String mobile,Integer type,
                       Long provinceId, String provinceName, Long cityId,
                       String cityName, Long districtId,
                       String districtName, String address,
                       Double longitude, Double latitude
                       ) {
        this.name = name;
        this.image = image;
        this.provinceId = provinceId;
        this.provinceName = provinceName;
        this.cityId = cityId;
        this.cityName = cityName;
        this.districtId = districtId;
        this.districtName = districtName;
        this.address = address;
        this.longitude = longitude;
        this.latitude = latitude;
        this.mobile=mobile;
        this.user=user;
        this.orgType=orgType;
        this.type=type;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Long getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Long districtId) {
        this.districtId = districtId;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Integer getOrgType() {
        return orgType;
    }

    public void setOrgType(Integer orgType) {
        this.orgType = orgType;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
